/**
  * @Author: songgh
  * @Date: 2021-09-20 14:41:08
  * @LastEditors: songgh
  * @LastEditTime: 2021-09-20 15:41:08
  * @Description: app
  */
import {
    SET_REGION_DATA
} from '../types'

const app = {
    namespaced: true,
    state: {
        regionData: []
    },
    mutations: {
        [SET_REGION_DATA](state, data):void {
            state.regionData = data;
        }
    },
    actions: {
        setRegionData: ({
            commit
        }, data):void => commit(SET_REGION_DATA, data)
    },
    getters: {
        getRegionData: (state) => state.regionData
    }
};

export default app;